/**
 * Filename: MXitMXMConverter.java
 * Developer: Surim
 * Date: 8 March 2010
 * Description: Entry point to MXit MXM Converter application
 */

package MXitMXMConverter;

/**
 * Entry class for MXit MXM Converter
 */
public class MXitMXMConverter {
//System.out.print(Integer.toHexString(read) + "\n");

    /**
     * Application Entry point
     */
    public static void main(String[] args)
    {
        //MXitMXMConverter main = new MXitMXMConverter();

        // For the application to run there needs to be at least two arguments
        // Will create GUI at later stage
        if(args.length >= 2)
        {
            String outputType = new String(args[0]);
            String sourcePath = new String(args[1]);
            String destinationPath = new String();

            GenerateXMLMXM bleh = new GenerateXMLMXM();
            bleh.generate(sourcePath, destinationPath);

            MXMClass mxmObject = null; // Load the base class therefore allowing to load which ever class is relevant
            
            /*if(args.length == 3)
                destinationPath = args[2];
*/
            if(outputType.toLowerCase().toString().equals(new String("xml")))
                mxmObject = new GenerateXMLMXM();
            
            //mxmObject.generate(sourcePath, destinationPath);
        }
    }
}